# include <stdio.h>
int main()
{
	int m,k,a,b,c;
	scanf("%d%d",&m,&k);
	a=1;
	while(a<=k)
	{
		b=1;
		for(c=2;c<m;c++)
			{
			 if(m%c==0)
			    b=0;
		    }
		if(b==1)
		{
		    printf("%d,",m);
		    a++;
         }  
		m++;
	}
	return 0;
}
